package com.yunhe.common.model.msg;

import com.yunhe.common.model.device.EnergyUnitDTO;

import java.io.Serializable;
import java.util.List;

/**
 * 能量单元更新消息对象
 * @author liuronglei
 */
public class EnergyUnitMsgDTO implements Serializable {
    // 消息类型 SystemConsts.ACTION
    private String action;
    // 更新的能量单元列表
    private List<EnergyUnitDTO> energyUnits;
    // 更新的能量单元ID列表
    private List<Long> energyUnitIds;
    // 能量单元所属电站ID
    private Long stationId;
    // 是否更新了调试状态
    private Boolean debugRefresh;
    // 操作用户ID
    private Long userId;

    public Boolean getDebugRefresh() {
        return debugRefresh;
    }

    public void setDebugRefresh(Boolean debugRefresh) {
        this.debugRefresh = debugRefresh;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public List<EnergyUnitDTO> getEnergyUnits() {
        return energyUnits;
    }

    public void setEnergyUnits(List<EnergyUnitDTO> energyUnits) {
        this.energyUnits = energyUnits;
    }

    public List<Long> getEnergyUnitIds() {
        return energyUnitIds;
    }

    public void setEnergyUnitIds(List<Long> energyUnitIds) {
        this.energyUnitIds = energyUnitIds;
    }

    public Long getStationId() {
        return stationId;
    }

    public void setStationId(Long stationId) {
        this.stationId = stationId;
    }

    @Override
    public String toString() {
        return "EnergyUnitMsgDTO{" +
                "action='" + action + '\'' +
                ", energyUnits=" + energyUnits +
                ", energyUnitIds=" + energyUnitIds +
                ", stationId=" + stationId +
                '}';
    }
}
